import { get, post, Delete } from "@/plugins/request";
const Api20 = {
    //添加测评设置
    tesevaluateAdd: (parms) => post("/api/cqt/tesevaluate/add", parms),
    //查询测评信息
    gettesevaluatequery: (parms) => get("/api/cqt/tesevaluate/query", parms),
    //做题目
    tesevaluatepaperitemsAdd: (parms) => post("/api/cqt/tesevaluatepaperitems/add", parms),
    //查询当前老师的创建的测评数据
    queryTestForMine: p => get('/api/cqt/tesevaluate/queryformine', p),
    //修改测评设置
    modifyTestSetting: p => post('/api/cqt/tesevaluate/update', p),
    //获取填写过的测评设置
    getTestSetting: p => get('/api/cqt/tesevaluate/edit', p),
    //老师查询学生测评
    tesevaluaterecordQueryForMine: (parms) => get("/api/cqt/tesevaluaterecord/query", parms),
    //老师查询题目进行批改
    teacherSearchQuestionMark: p => get("/api/cqt/tesevaluaterecord/gettestpaperbytesevaluaterecordid", p),
    //根据题目tesEvaluatePaperItemsId获取学生答案
    getStudentAnswer: p => get('/api/cqt/tesevaluatepaperitems/edit', p),
    //批改试卷
    teacherMarkExam: p => post('/api/cqt/tesevaluatepaperitems/correctpaper' + p),
    //老师点击批改完成
    teacherMarkExamFinish: p => post('/api/cqt/tesevaluatepaperitems/correctpapercomplete' + p),
    // 测评信息 删除
    tesevaluateDelete: p => Delete('/api/cqt/tesevaluate/delete' + p),
    // 我的组卷
    queryPaperbycurr: p => get('api/cqt/paper/querybycurr', p),
    // 上架 下架
    setisenabled: p => post('api/cqt/tesevaluate/setisenabled' + p, ''),
    //修改批改试卷需要的青藤币
    changeMarkPaperQtb: p => post('api/cqt/user/updatepigaiqtmoney' + p, ''),
    //获取提交测评的所有答案
    getAllAnswer: p => get('api/cqt/tesevaluatepaperitems/getlistbytesevaluaterecordid', p),
    //获取图片主机
    getPicHost: p => get('/api/cqt/dictextend/getpichost', p),
    //点击重新评测
    teachersetrepeat: p => post('/api/cqt/tesevaluaterecord/teachersetrepeat' + p, ''),
    //校对题目
    updatejiaodui: p => post('/api/cqt/question/updatejiaodui', p),
    //题目校对、
    auditjdzjxstatus: (p, d) => post('/api/cqt/question/auditjdzjxstatus' + p, d),
    //修改题目年份
    updateyear: p => post('/api/cqt/question/updateyear' + p),
    //修改季节
    updatequarter: p => post('/api/cqt/question/updatequarter' + p),
    //修改真题分数
    updatequestionscore: p => post('/api/cqt/question/updatequestionscore' + p),
    //修改题目年份
    updatedifficulty: p => post('/api/cqt/question/updatedifficulty' + p),
    //修改年份、季节、年份、难度
    updateQuestionInfo: (p, method) => post(method + p),
    //修改青藤卷信息
    updateqtpaper: p => post('/api/cqt/paper/updateqtpaper', p),
    //设置试卷青藤币
    changeqtmoney: p => post('/api/cqt/paper/changeqtmoney' + p, ''),
    //查询青藤币汇总
    getQtMoneySummaryAll: p => get('/api/cqt/qtmoneyrecord/getqtmoneysummaryall', p),
    //青藤币对比
    qtbContrast: p => get('/api/cqt/qtmoneyrecord/getqtmoneyusersummary', p),
    //获取饼图数据
    getPieData: p => get('/api/cqt/qtmoneyrecord/getqtmoneysummary', p),
    //字典查询
    dictQuery: p => get('/api/common/dict/Tree', p),
    //获取青藤币发放报表
    getQtbGiveOutReport: p => get('/api/cqt/qtmoneyrecord/getqtmoneysummarylist', p),
    //查询所有老师
    queryAllTeacher: p => get('/api/cqt/user/selectwithaccountid', p),
    //修改到期时间
    modifyExpirseTime: p => post('/api/cqt/exceldata/updateexpirsetime' + p, ''),
    //批量修改到期时间
    批量修改到期时间: (q, d) => post('/api/cqt/exceldata/updateexpirsetimebatch' + q, d),
    //上传word
    uploadWord: (q, d) => post('/api/cqt/paper/uploadword' + q, d),
    //查询激励发放
    queryRewardGiveOut: q => get('/api/cqt/paper/queryforfafang', q),
    //发放青藤币
    giveOutQTB: q => get('/api/cqt/paper/fafangqtmoney', q),
    //获取当前登录用户信息
    getCurrentUserInfo: q => get('/api/cqt/user/detailscurraccount', q),
    //发送短信验证码
    sendSMS: d => post('/api/cqt/exceldata/sendsms' + d, ''),
    //批量发送短信验证码
    sendSMSBatch: (p, d) => post('/api/cqt/exceldata/sendsmsbatch' + p, d)


}
export default Api20